Optimal. Leaf size=131 \[ \frac {1}{8} a (3 A+4 C) x+\frac {a (4 A+5 C) \sin (c+d x)}{5 d}+\frac {a (3 A+4 C) \cos (c+d x) \sin (c+d x)}{8 d}+\frac {a A \cos ^3(c+d x) \sin (c+d x)}{4 d}+\frac {a A \cos ^4(c+d x) \sin (c+d x)}{5 d}-\frac {a (4 A+5 C) \sin ^3(c+d x)}{15 d} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.12, antiderivative size = 131, normalized size of antiderivative = 1.00, number of steps
used = 7, number of rules used = 6, integrand size = 31, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.194, Rules used = {4160, 4132,
2713, 4130, 2715, 8} \begin {gather*} -\frac {a (4 A+5 C) \sin ^3(c+d x)}{15 d}+\frac {a (4 A+5 C) \sin (c+d x)}{5 d}+\frac {a (3 A+4 C) \sin (c+d x) \cos (c+d x)}{8 d}+\frac {a A \sin (c+d x) \cos ^4(c+d x)}{5 d}+\frac {a A \sin (c+d x) \cos ^3(c+d x)}{4 d}+\frac {1}{8} a x (3 A+4 C) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 8
Rule 2713
Rule 2715
Rule 4130
Rule 4132
Rule 4160
Rubi steps
\begin {align*} \int \cos ^5(c+d x) (a+a \sec (c+d x)) \left (A+C \sec ^2(c+d x)\right ) \, dx &=\frac {a A \cos ^4(c+d x) \sin (c+d x)}{5 d}-\frac {1}{5} \int \cos ^4(c+d x) \left (-5 a A-a (4 A+5 C) \sec (c+d x)-5 a C \sec ^2(c+d x)\right ) \, dx\\ &=\frac {a A \cos ^4(c+d x) \sin (c+d x)}{5 d}-\frac {1}{5} \int \cos ^4(c+d x) \left (-5 a A-5 a C \sec ^2(c+d x)\right ) \, dx+\frac {1}{5} (a (4 A+5 C)) \int \cos ^3(c+d x) \, dx\\ &=\frac {a A \cos ^3(c+d x) \sin (c+d x)}{4 d}+\frac {a A \cos ^4(c+d x) \sin (c+d x)}{5 d}+\frac {1}{4} (a (3 A+4 C)) \int \cos ^2(c+d x) \, dx-\frac {(a (4 A+5 C)) \text {Subst}\left (\int \left (1-x^2\right ) \, dx,x,-\sin (c+d x)\right )}{5 d}\\ &=\frac {a (4 A+5 C) \sin (c+d x)}{5 d}+\frac {a (3 A+4 C) \cos (c+d x) \sin (c+d x)}{8 d}+\frac {a A \cos ^3(c+d x) \sin (c+d x)}{4 d}+\frac {a A \cos ^4(c+d x) \sin (c+d x)}{5 d}-\frac {a (4 A+5 C) \sin ^3(c+d x)}{15 d}+\frac {1}{8} (a (3 A+4 C)) \int 1 \, dx\\ &=\frac {1}{8} a (3 A+4 C) x+\frac {a (4 A+5 C) \sin (c+d x)}{5 d}+\frac {a (3 A+4 C) \cos (c+d x) \sin (c+d x)}{8 d}+\frac {a A \cos ^3(c+d x) \sin (c+d x)}{4 d}+\frac {a A \cos ^4(c+d x) \sin (c+d x)}{5 d}-\frac {a (4 A+5 C) \sin ^3(c+d x)}{15 d}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.28, size = 99, normalized size = 0.76 \begin {gather*} \frac {a \left (180 A c+240 c C+180 A d x+240 C d x+60 (5 A+8 C) \sin (c+d x)-160 C \sin ^3(c+d x)+120 (A+C) \sin (2 (c+d x))+50 A \sin (3 (c+d x))+15 A \sin (4 (c+d x))+6 A \sin (5 (c+d x))\right )}{480 d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.73, size = 117, normalized size = 0.89
method | result | size |
derivativedivides | \(\frac {\frac {A a \left (\frac {8}{3}+\cos ^{4}\left (d x +c \right )+\frac {4 \left (\cos ^{2}\left (d x +c \right )\right )}{3}\right ) \sin \left (d x +c \right )}{5}+A a \left (\frac {\left (\cos ^{3}\left (d x +c \right )+\frac {3 \cos \left (d x +c \right )}{2}\right ) \sin \left (d x +c \right )}{4}+\frac {3 d x}{8}+\frac {3 c}{8}\right )+\frac {a C \left (2+\cos ^{2}\left (d x +c \right )\right ) \sin \left (d x +c \right )}{3}+a C \left (\frac {\cos \left (d x +c \right ) \sin \left (d x +c \right )}{2}+\frac {d x}{2}+\frac {c}{2}\right )}{d}\) | \(117\) |
default | \(\frac {\frac {A a \left (\frac {8}{3}+\cos ^{4}\left (d x +c \right )+\frac {4 \left (\cos ^{2}\left (d x +c \right )\right )}{3}\right ) \sin \left (d x +c \right )}{5}+A a \left (\frac {\left (\cos ^{3}\left (d x +c \right )+\frac {3 \cos \left (d x +c \right )}{2}\right ) \sin \left (d x +c \right )}{4}+\frac {3 d x}{8}+\frac {3 c}{8}\right )+\frac {a C \left (2+\cos ^{2}\left (d x +c \right )\right ) \sin \left (d x +c \right )}{3}+a C \left (\frac {\cos \left (d x +c \right ) \sin \left (d x +c \right )}{2}+\frac {d x}{2}+\frac {c}{2}\right )}{d}\) | \(117\) |
risch | \(\frac {3 a A x}{8}+\frac {a x C}{2}+\frac {5 a A \sin \left (d x +c \right )}{8 d}+\frac {3 \sin \left (d x +c \right ) a C}{4 d}+\frac {A a \sin \left (5 d x +5 c \right )}{80 d}+\frac {A a \sin \left (4 d x +4 c \right )}{32 d}+\frac {5 A a \sin \left (3 d x +3 c \right )}{48 d}+\frac {\sin \left (3 d x +3 c \right ) a C}{12 d}+\frac {A a \sin \left (2 d x +2 c \right )}{4 d}+\frac {\sin \left (2 d x +2 c \right ) a C}{4 d}\) | \(134\) |
norman | \(\frac {\frac {a \left (3 A +4 C \right ) x}{8}+\frac {2 a \left (A +2 C \right ) \left (\tan ^{11}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{3 d}+\frac {a \left (3 A +4 C \right ) \left (\tan ^{13}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{4 d}+\frac {3 a \left (3 A +4 C \right ) x \left (\tan ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{8}+\frac {a \left (3 A +4 C \right ) x \left (\tan ^{4}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{8}-\frac {5 a \left (3 A +4 C \right ) x \left (\tan ^{6}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{8}-\frac {5 a \left (3 A +4 C \right ) x \left (\tan ^{8}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{8}+\frac {a \left (3 A +4 C \right ) x \left (\tan ^{10}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{8}+\frac {3 a \left (3 A +4 C \right ) x \left (\tan ^{12}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{8}+\frac {a \left (3 A +4 C \right ) x \left (\tan ^{14}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{8}-\frac {2 a \left (5 A -2 C \right ) \left (\tan ^{3}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{3 d}+\frac {a \left (13 A +12 C \right ) \tan \left (\frac {d x}{2}+\frac {c}{2}\right )}{4 d}-\frac {8 a \left (19 A +5 C \right ) \left (\tan ^{7}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{15 d}+\frac {a \left (83 A +20 C \right ) \left (\tan ^{9}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{20 d}+\frac {a \left (93 A -100 C \right ) \left (\tan ^{5}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{20 d}}{\left (1+\tan ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )^{5} \left (\tan ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )-1\right )^{2}}\) | \(362\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.28, size = 113, normalized size = 0.86 \begin {gather*} \frac {32 \, {\left (3 \, \sin \left (d x + c\right )^{5} - 10 \, \sin \left (d x + c\right )^{3} + 15 \, \sin \left (d x + c\right )\right )} A a + 15 \, {\left (12 \, d x + 12 \, c + \sin \left (4 \, d x + 4 \, c\right ) + 8 \, \sin \left (2 \, d x + 2 \, c\right )\right )} A a - 160 \, {\left (\sin \left (d x + c\right )^{3} - 3 \, \sin \left (d x + c\right )\right )} C a + 120 \, {\left (2 \, d x + 2 \, c + \sin \left (2 \, d x + 2 \, c\right )\right )} C a}{480 \, d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 3.03, size = 94, normalized size = 0.72 \begin {gather*} \frac {15 \, {\left (3 \, A + 4 \, C\right )} a d x + {\left (24 \, A a \cos \left (d x + c\right )^{4} + 30 \, A a \cos \left (d x + c\right )^{3} + 8 \, {\left (4 \, A + 5 \, C\right )} a \cos \left (d x + c\right )^{2} + 15 \, {\left (3 \, A + 4 \, C\right )} a \cos \left (d x + c\right ) + 16 \, {\left (4 \, A + 5 \, C\right )} a\right )} \sin \left (d x + c\right )}{120 \, d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] Timed out
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.48, size = 186, normalized size = 1.42 \begin {gather*} \frac {15 \, {\left (3 \, A a + 4 \, C a\right )} {\left (d x + c\right )} + \frac {2 \, {\left (45 \, A a \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{9} + 60 \, C a \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{9} + 130 \, A a \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{7} + 200 \, C a \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{7} + 464 \, A a \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{5} + 400 \, C a \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{5} + 190 \, A a \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{3} + 440 \, C a \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{3} + 195 \, A a \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) + 180 \, C a \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )\right )}}{{\left (\tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2} + 1\right )}^{5}}}{120 \, d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 5.21, size = 218, normalized size = 1.66 \begin {gather*} \frac {\left (\frac {3\,A\,a}{4}+C\,a\right )\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^9+\left (\frac {13\,A\,a}{6}+\frac {10\,C\,a}{3}\right )\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^7+\left (\frac {116\,A\,a}{15}+\frac {20\,C\,a}{3}\right )\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^5+\left (\frac {19\,A\,a}{6}+\frac {22\,C\,a}{3}\right )\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^3+\left (\frac {13\,A\,a}{4}+3\,C\,a\right )\,\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}{d\,\left ({\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^{10}+5\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^8+10\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^6+10\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^4+5\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^2+1\right )}+\frac {a\,\mathrm {atan}\left (\frac {a\,\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )\,\left (3\,A+4\,C\right )}{4\,\left (\frac {3\,A\,a}{4}+C\,a\right )}\right )\,\left (3\,A+4\,C\right )}{4\,d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________